package com.forum.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
// 点赞/踩表
public class Likes {
    // 用户id
    private Long userId;
    // 点赞类型，帖子，评论
    private Integer targetType;
    // 帖子或者评论id
    private String threadsId;
    // 1赞。0踩
    private Integer type;
    // 创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
